import { Module } from '@nestjs/common';
import { SetingService } from './seting.service';
import { SetingController } from './seting.controller';
import { JwtModule } from '@nestjs/jwt';
import { TypeOrmModule } from '@nestjs/typeorm';
import { jwtConstants, signOptions } from 'src/common/auth/constants';
import { SetingEntity } from './entities/seting.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([SetingEntity]),
    JwtModule.register({
      secret: jwtConstants.secret,
      signOptions,
    }),
  ],
  controllers: [SetingController],
  providers: [SetingService]
})
export class SetingModule { }
